﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TrainningCShape_Week01.BL;
using TrainningCShape_Week01.DO;

namespace TrainningCShape_Week01.GUI
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void Form2_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void btnsubmit_Click(object sender, EventArgs e)
        {
            UserInfo user = new UserInfo(txtusername.Text, txtpassword.Text);
            LoginControl.AddUser(user);
            MessageBox.Show("Thanh cong");
        }
    }
}
